package r21310.chap04.d1106;

public class Person {
    protected String name;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void howToPlay(Sports sp) {
        System.out.println(name);
        sp.play();
        System.out.println(name);
        sp.play();
    }


}

